Be reproducible, and don't fail on examples exceptions
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 3 Jul 2026 21:13:01 +0000 (22:13 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 3 Jul 2026 21:13:01 +0000 (22:13 +0100)
commitb87d9e8dae8552e8fd7cbbd41e1d34fd0c925bff
treec8a34d5e88abd896deae8cd9a1e234f0e1061388
parente49bb1b0900f0c67f8a4aabd39dbac174a16d4a4
Be reproducible, and don't fail on examples exceptions

Don't execute example notebooks because some of them
have unreproducible output, either numerical differences (small
enough that I guess them to be machine-dependent rounding error
not deliberate randomness) or extra cells (a single newline
being split into its own cell vs part of the previous one).
Copy them instead.

At one point these 10 were affected, but skipping just them doesn't
work because it seems 'random' which ones have the extra cells.
count_hurdle
discrete_choice_example
discrete_choice_overview
exponential_smoothing (and its images 14_0 and 16_0)
generic_mle
glm_formula
glm_weights
postestimation_poisson
stats_poisson
treatment_effect

Also remove timestamps, ipykernel IDs, etc from examples output
for reproducibility.  (This is here not in debian/rules to do it
before building the search index.)

Skip some vector_ar cells that would print <type at address>
output (that would end up in the search index, so
stripping it afterwards isn't enough).

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name sphinx_reproducibility_and_ignore_errors.patch
docs/Makefile
docs/source/conf.py
docs/source/vector_ar.rst
examples/notebooks/stl_decomposition.ipynb